﻿using Wicresoft.SMS.Data;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Collections.Generic;

namespace SMS.Gateway.Host.Test
{
    
    
    /// <summary>
    ///This is a test class for sqlDataProviderTest and is intended
    ///to contain all sqlDataProviderTest Unit Tests
    ///</summary>
    [TestClass()]
    public class sqlDataProviderTest
    {


        private TestContext testContextInstance;

        /// <summary>
        ///Gets or sets the test context which provides
        ///information about and functionality for the current test run.
        ///</summary>
        public TestContext TestContext
        {
            get
            {
                return testContextInstance;
            }
            set
            {
                testContextInstance = value;
            }
        }

        #region Additional test attributes
        // 
        //You can use the following additional attributes as you write your tests:
        //
        //Use ClassInitialize to run code before running the first test in the class
        //[ClassInitialize()]
        //public static void MyClassInitialize(TestContext testContext)
        //{
        //}
        //
        //Use ClassCleanup to run code after all tests in a class have run
        //[ClassCleanup()]
        //public static void MyClassCleanup()
        //{
        //}
        //
        //Use TestInitialize to run code before running each test
        //[TestInitialize()]
        //public void MyTestInitialize()
        //{
        //}
        //
        //Use TestCleanup to run code after each test has run
        //[TestCleanup()]
        //public void MyTestCleanup()
        //{
        //}
        //
        #endregion


        /// <summary>
        ///A test for sqlDataProvider Constructor
        ///</summary>
        [TestMethod()]
        [DeploymentItem("SMS.Data.dll")]
        public void sqlDataProviderConstructorTest()
        {
            IConnectStringProvider configProvider = null; // TODO: Initialize to an appropriate value
            sqlDataProvider_Accessor target = new sqlDataProvider_Accessor(configProvider);
            Assert.Inconclusive("TODO: Implement code to verify target");
        }

        /// <summary>
        ///A test for GetEmailbyUserID
        ///</summary>
        [TestMethod()]
        [DeploymentItem("SMS.Data.dll")]
        public void GetEmailbyUserIDTest()
        {
            PrivateObject param0 = null; // TODO: Initialize to an appropriate value
            sqlDataProvider_Accessor target = new sqlDataProvider_Accessor(param0); // TODO: Initialize to an appropriate value
            int userId = 0; // TODO: Initialize to an appropriate value
            string expected = string.Empty; // TODO: Initialize to an appropriate value
            string actual;
            actual = target.GetEmailbyUserID(userId);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for GetMsgSending
        ///</summary>
        [TestMethod()]
        [DeploymentItem("SMS.Data.dll")]
        public void GetMsgSendingTest()
        {
            PrivateObject param0 = null; // TODO: Initialize to an appropriate value
            sqlDataProvider_Accessor target = new sqlDataProvider_Accessor(param0); // TODO: Initialize to an appropriate value
            IEnumerable<SMSRecord> expected = null; // TODO: Initialize to an appropriate value
            IEnumerable<SMSRecord> actual;
            actual = target.GetMsgSending();
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for GetMsgToBeSended
        ///</summary>
        [TestMethod()]
        [DeploymentItem("SMS.Data.dll")]
        public void GetMsgToBeSendedTest()
        {
            PrivateObject param0 = null; // TODO: Initialize to an appropriate value
            sqlDataProvider_Accessor target = new sqlDataProvider_Accessor(param0); // TODO: Initialize to an appropriate value
            IEnumerable<SMSRecord> expected = null; // TODO: Initialize to an appropriate value
            IEnumerable<SMSRecord> actual;
            actual = target.GetMsgToBeSended();
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for GetUsernmeByUserID
        ///</summary>
        [TestMethod()]
        [DeploymentItem("SMS.Data.dll")]
        public void GetUsernmeByUserIDTest()
        {
            PrivateObject param0 = null; // TODO: Initialize to an appropriate value
            sqlDataProvider_Accessor target = new sqlDataProvider_Accessor(param0); // TODO: Initialize to an appropriate value
            int userId = 0; // TODO: Initialize to an appropriate value
            string expected = string.Empty; // TODO: Initialize to an appropriate value
            string actual;
            actual = target.GetUsernmeByUserID(userId);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for PushEmail
        ///</summary>
        [TestMethod()]
        [DeploymentItem("SMS.Data.dll")]
        public void PushEmailTest()
        {
            PrivateObject param0 = null; // TODO: Initialize to an appropriate value
            sqlDataProvider_Accessor target = new sqlDataProvider_Accessor(param0); // TODO: Initialize to an appropriate value
            List<Message> msgs = null; // TODO: Initialize to an appropriate value
            Email expected = null; // TODO: Initialize to an appropriate value
            Email actual;
            actual = target.PushEmail(msgs);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for SendSMS
        ///</summary>
        [TestMethod()]
        [DeploymentItem("SMS.Data.dll")]
        public void SendSMSTest()
        {
            PrivateObject param0 = null; // TODO: Initialize to an appropriate value
            sqlDataProvider_Accessor target = new sqlDataProvider_Accessor(param0); // TODO: Initialize to an appropriate value
            string from = string.Empty; // TODO: Initialize to an appropriate value
            string pwd = string.Empty; // TODO: Initialize to an appropriate value
            string text = string.Empty; // TODO: Initialize to an appropriate value
            string to = string.Empty; // TODO: Initialize to an appropriate value
            int expected = 0; // TODO: Initialize to an appropriate value
            int actual;
            actual = target.SendSMS(from, pwd, text, to);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for SetMsgSendingFailed
        ///</summary>
        [TestMethod()]
        [DeploymentItem("SMS.Data.dll")]
        public void SetMsgSendingFailedTest()
        {
            PrivateObject param0 = null; // TODO: Initialize to an appropriate value
            sqlDataProvider_Accessor target = new sqlDataProvider_Accessor(param0); // TODO: Initialize to an appropriate value
            List<KeyandMessageId> keyandMessageId = null; // TODO: Initialize to an appropriate value
            List<Email> expected = null; // TODO: Initialize to an appropriate value
            List<Email> actual;
            actual = target.SetMsgSendingFailed(keyandMessageId);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for SetMsgSendingSuccess
        ///</summary>
        [TestMethod()]
        [DeploymentItem("SMS.Data.dll")]
        public void SetMsgSendingSuccessTest()
        {
            PrivateObject param0 = null; // TODO: Initialize to an appropriate value
            sqlDataProvider_Accessor target = new sqlDataProvider_Accessor(param0); // TODO: Initialize to an appropriate value
            List<KeyandMessageId> keyandMessageId = null; // TODO: Initialize to an appropriate value
            List<Email> expected = null; // TODO: Initialize to an appropriate value
            List<Email> actual;
            actual = target.SetMsgSendingSuccess(keyandMessageId);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }
    }
}
